<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script language="javascript" type="text/javascript">
// <!CDATA[

function Button1_onclick() {
if(document.myForm.id.value == "")
		alert("Your ID must not be null!!!")
//else if(document.myForm.name.value == "")
	//	alert("Your Name must not be null!!!")
else if(document.myForm.Password1.value == "")
		alert("Your Password must not be null!!!")
else if(document.myForm.Password1.value != document.myForm.Password2.value)
    alert("The Two Passwords Should Be the SAME!!!")
    
  else{document.myForm.submit()}
}

function Button2_onclick() {
    window.open("RegisterPage.htm","_self");

}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Island Auctions - New User</title>
</head>

<body>
<table width="100%" height="100%" border="2">
  <tr>
    <td width="22%" height="95"><img src="logo.png" width="163" height="154" alt="Logo" /></td>
    <td width="78%"><h1>Island Auctions</h1>
    <p> Turning Junk Into Money</p></td>
  </tr>
  <tr>
    <td valign="top"><p><a href="index.jsp">Home</a></p>
    <p><a href="Browse.jsp">Browse</a></p>
    <p><a href="index.jsp">Search</a></p>
    <p><a href="profile.jsp">Profile</a></p>
    <p><a href="Users.jsp">Users</a></p>
    <%
    try{
	    if(session.getValue("login") != null)
	    {%>
	    	<p><a href="Logout.jsp">Logout</a></p>
	    <%}
	    else
	    {%>
	    	<p><a href="login.jsp">Login</a></p>
	    <%}
    }catch(java.lang.IllegalStateException e)
    {%>
		<p><a href="login.jsp">Login</a></p><%
}%>
    <p><a href="index.jsp">(Manage Employees)</a></p></td>
    <td valign="top"> 
    
        <table border="0" cellpadding="0" cellspacing="0" style="font-size: 14pt; width: 100%;
        height: 100%" id="TABLE1"">
        <tr>
            <td colspan="2" style="height: 63px; text-align: center; background-color: gray;">
                Create Employee</td>
        </tr>
        <tr>
        	<form name="myForm" action="usercreate.jsp" method="post">
        		<input type="hidden" name="target" value="createemployee">
            <td style="width: 220px; height: 426px; vertical-align: top; text-align: left;">
                <span style="font-size: 10pt"><strong>Your ID: &nbsp; &nbsp;<br />
                </strong></span><input value="JDale" name="Id" style="font-weight: bold; font-size: 10pt; width: 145px; left: 1px; position: relative; top: 0px;" type="text" /><span
                    style="font-size: 10pt"><strong>
                        <br />
                        Password:&nbsp;<br />
                    </strong></span><input
                            name="Password1" style="font-weight: bold; font-size: 10pt; width: 145px; left: 0px; position: relative; top: 0px;" type="password" /><br />
                <span style="font-size: 10pt"></span><span style="font-size: 10pt"><strong>Reenter Password:<br />
                </strong></span><input id="Password2" style="font-weight: bold; font-size: 10pt;
                        width: 145px" type="password" /><br />
                <span style="font-size: 10pt"><strong>First Name:<br />
                    <input value="Justin" name="FirstName" style="font-weight: bold; font-size: 10pt; width: 145px"
                        type="text" /><br />
                                        <span style="font-size: 10pt"><strong>Last Name:<br />
                    <input value="Dale" name="LastName" style="font-weight: bold; font-size: 10pt; width: 145px"
                        type="text" /><br />
                                        <span style="font-size: 10pt"><strong>SSN (For tax purposes):<br />
                    <input value="111223333" name="SSN" style="font-weight: bold; font-size: 10pt; width: 145px"
                        type="text" /><br />

                    EMail Address:<br />
                    <input value="j@d.com" id="Email" name="Email" style="width: 145px" type="text" /><br />
                    <br />
                    Your Address: &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
                    <br />
                    <textarea value="32 shermans way" id="Address" name="Address" style="width: 200px; height: 96px"></textarea><br />
                          Zip Code:<br />
                    <input value="02090" id="ZipCode" name="ZipCode" style="width: 145px" type="text" /><br />
                    <br />
                      <span style="font-size: 10pt"><strong>Telephone:<br />
                    <input value="7817759598" name="Telephone" style="font-weight: bold; font-size: 10pt; width: 145px"
                        type="text" /><br />
                                        <span style="font-size: 10pt"><strong>Hourly Rate:<br />
                    <input value="12" name="Hourly" style="font-weight: bold; font-size: 10pt; width: 145px"
                        type="text" /><br />
                                                              <span style="font-size: 10pt"><strong>Employee Level:<br />
                    <input value="2" name="Level" style="font-weight: bold; font-size: 10pt; width: 145px"
                        type="text" /><br />
                    <input id="Button2" type="button" value="Finish"  onclick="return Button1_onclick()" />
                    &nbsp;
                    <input id="Button3" type="button" value="Cancel"  onclick="window.open('','_self');" /><br />
                </strong></span>
           </form>
        </tr>
        <tr>
            <td style="width: 220px; background-color: yellow;">
            </td>
            <td style="vertical-align: top; background-color: yellow; text-align: justify; width: 355px;">
            </td>
        </tr>
    </table>
    
    </td>
  </tr>
</table>
</body>
</html>